package com.smartpro.mis.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 团购表
 * </p>
 *
 * @author mengiy123
 * @since 2019-05-07
 */
@TableName("groupBuy")
public class GroupBuy extends Model<GroupBuy> {

    private static final long serialVersionUID = 1L;

    /**
     * 团购ID
     */
    @TableId(value = "groupBuyID", type = IdType.AUTO)
    private Integer groupBuyID;
    /**
     * 团长id
     */
    private Integer leaderID;
    /**
     * 推广员ID
     */
    private Integer distributorID;
    /**
     * 商品id
     */
    private Integer productID;
    /**
     * 规格组
     */
    private String specList;
    /**
     * 几人团
     */
    private Integer NumberOfMember;
    /**
     * 团购小时数
     */
    private Integer duration;
    /**
     * 是否允许买多个,0:是,1:否
     */
    private Integer isMultiple;

    public BigDecimal getOriginPrice() {
        return originPrice;
    }

    public void setOriginPrice(BigDecimal originPrice) {
        this.originPrice = originPrice;
    }

    /**
     * 商品原价
     */
    private BigDecimal originPrice;
    /**
     * 立即购买价格
     */
    private BigDecimal instantPrice;
    /**
     * 团长价
     */
    private BigDecimal leaderPrice;
    /**
     * 团购价
     */
    private BigDecimal groupPrice;
    /**
     * 团员id列表
     */
    private String memberList;
    /**
     * 团购发起时间
     */
    private String createTime;
    /**
     * 修改时间
     */
    private String modifyTime;


    public Integer getGroupBuyID() {
        return groupBuyID;
    }

    public void setGroupBuyID(Integer groupBuyID) {
        this.groupBuyID = groupBuyID;
    }

    public Integer getLeaderID() {
        return leaderID;
    }

    public void setLeaderID(Integer leaderID) {
        this.leaderID = leaderID;
    }

    public Integer getDistributorID() {
        return distributorID;
    }

    public void setDistributorID(Integer distributorID) {
        this.distributorID = distributorID;
    }

    public Integer getProductID() {
        return productID;
    }

    public void setProductID(Integer productID) {
        this.productID = productID;
    }

    public String getSpecList() {
        return specList;
    }

    public void setSpecList(String specList) {
        this.specList = specList;
    }

    public Integer getNumberOfMember() {
        return NumberOfMember;
    }

    public void setNumberOfMember(Integer NumberOfMember) {
        this.NumberOfMember = NumberOfMember;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public Integer getIsMultiple() {
        return isMultiple;
    }

    public void setIsMultiple(Integer isMultiple) {
        this.isMultiple = isMultiple;
    }

    public BigDecimal getInstantPrice() {
        return instantPrice;
    }

    public void setInstantPrice(BigDecimal instantPrice) {
        this.instantPrice = instantPrice;
    }

    public BigDecimal getLeaderPrice() {
        return leaderPrice;
    }

    public void setLeaderPrice(BigDecimal leaderPrice) {
        this.leaderPrice = leaderPrice;
    }

    public BigDecimal getGroupPrice() {
        return groupPrice;
    }

    public void setGroupPrice(BigDecimal groupPrice) {
        this.groupPrice = groupPrice;
    }

    public String getMemberList() {
        return memberList;
    }

    public void setMemberList(String memberList) {
        this.memberList = memberList;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.groupBuyID;
    }

    @Override
    public String toString() {
        return "GroupBuy{" +
        "groupBuyID=" + groupBuyID +
        ", leaderID=" + leaderID +
        ", distributorID=" + distributorID +
        ", productID=" + productID +
        ", specList=" + specList +
        ", NumberOfMember=" + NumberOfMember +
        ", duration=" + duration +
        ", isMultiple=" + isMultiple +
                ", originPrice=" + originPrice +
        ", instantPrice=" + instantPrice +
        ", leaderPrice=" + leaderPrice +
        ", groupPrice=" + groupPrice +
        ", memberList=" + memberList +
        ", createTime=" + createTime +
        ", modifyTime=" + modifyTime +
        "}";
    }
}
